home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 October / Software of the Month Club 1996 October.iso / mac / Education / LifeLab 3.1 / Patterns / Dean Hickerson / RLE patterns / miscellaneous / PRNG 120 < prev    next >
Encoding:
Text File  |  1991-04-12  |  1.1 KB  |  18 lines  |  [TEXT/LLAB]

  1. #N Pseudorandom number generator with p120 logic
  2. #C A glider stream is emitted representing a pseudorandom binary
  3. #C sequence satisfying the recursion  a[n] = a[n-1] XOR a[n-11].
  4. #C (By spreading out the pattern, the 11 can be changed.)  The
  5. #C sequence has period 1533, so the gun has period 120*1533 = 183960.
  6. #O Dean Hickerson, drhickerson@ucdavis.edu  3/21/92
  7. x = 188, y = 186
  8. 37b2o$37bo2bo$32b2o7bo9bobo$2o23bo5bo2bo6bo7bo3bo$bo23bobo4b2o7bo7bo$b
  9. obo4b2o18b2o7bo2bo7bo14bo$2b2o6bo17b2o7b2o10bo12b2o$11bo16b2o19bo3bo$
  10. 11bo8bo4bobo23bobo$11bo9bo3bo$10bo8b3o$8b2o7$42b2obo$42bob2o3$47b2o$
  11. 48bo3$47b3o$48b2o$45b2o$45b3o$46bobo$47b2o3$6b2o$6bo4$6bo$5b3o$4bo3bo
  12. 14bo$3bob3obo13b3o$4b5o17bo$25b2o4$9b3o$11bo$10bo14bo5bo$25b2o3b2o2$
  13. 21b3o3b3o$21bo5b3o$22bo5bo2$7b3o$6bo3bo$5bo5bo$5b2obob2o$25b3o$25b3o$
  14. 24bo3bo2$23b2o3b2o3$9bo$8b2o6$26bo$26b2o69$181b2o$181bo6$182bo$181b3o$
  15. 181b3o2$179b2o3b2o$179bo5bo4$183bo$182bo$182b3o4$181bo5bo$181bo5bo$
  16. 175bo6bo3bo$175bobo5b3o$175b2o6$175b2o$173bo3bo$164bo7bo5bo$164bobo4b
  17. 2obo3bo$153bo13b2o3bo5bo$153b2o12b2o4bo3bo$167b2o6b2o$164bobo$164bo!
  18.